<template>
    <div>
		<Header/>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 在Vue中，我们靠router-link组件实现路径的改变 -->
			<router-link class="list-group-item" active-class="liang" :to="{path:'/about'}">About</router-link>
			<router-link class="list-group-item" active-class="liang" :to="{path:'/home'}">Home</router-link>
		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel-body">
			<!-- 通知一下路由器将最终匹配上的组件渲染到此处 -->
			<router-view></router-view>
		</div>
	</div>
</template>

<script>
	import Header from './components/Header.vue'
    export default {
        name:'App',
		components:{Header}
    }
</script>

<style>
	.liang{
		background-color: gray !important;
		color: orange !important;
		font-weight: 700;
	}
</style>